<%@ Page Title="" Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true" CodeFile="ListagemInscritosDisponiveis.aspx.cs" Inherits="_ListagemInscritosDisponiveis" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
    table th 
    {
        font-weight: bold;
    }
    th, td 
    {
        font: 12px arial;
        padding: 5px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h1>Candidatos disponíveis</h1><br />
            <table style="width:100%;">
                <tr>
                    <td align="center" colspan="3">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                DataSourceID="dsListagemDisponiveis" EnableModelValidation="True" 
                CellPadding="4" ForeColor="#333333" GridLines="None" 
        CssClass="tabela2" EmptyDataText="Não existem candidatos disponíveis">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <Columns>
                    <asp:BoundField DataField="CPF" HeaderText="CPF">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle Width="120px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="NomeAluno" HeaderText="Nome">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle Width="300px" />
                    </asp:BoundField>
                </Columns>
                <EditRowStyle BackColor="#999999" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            </asp:GridView>
            <asp:SqlDataSource ID="dsListagemDisponiveis" runat="server" 
                ConnectionString="<%$ ConnectionStrings:conexao_intranet_ler %>" 
                DataSourceMode="DataReader" 
                
        ProviderName="<%$ ConnectionStrings:conexao_intranet_ler.ProviderName %>" SelectCommand="SELECT CamaraInscritos.CPF, CamaraInscritos.NomeAluno FROM CamaraInscritos WHERE Disponivel = 1
ORDER BY NomeAluno"></asp:SqlDataSource>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td align="right">
                        <asp:ImageButton ID="btnVoltar" runat="server" 
                            ImageUrl="../figuras/bVoltar.gif" PostBackUrl="CandidatoOpcoes.aspx" />
                    </td>
                </tr>
    </table>
</asp:Content>